/**
 * This file is part of ossecdb-extjs.
 *
 * Contact: brendan@johnston.net.au
 *
 * Project: http://code.google.com/p/ossecdb-extjs/
 */

Ext.define('OssecWeb.lib.Level', {
    singleton: true,

	// Source: http://www.ossec.net/wiki/Know_How:Rules_Severity (as at 2011-07-02)
	levels: [
		{level: '00', text: 'Ignored - No action taken.', desc: 'Used to avoid false positives. These rules are scanned before all the others. They include events with no security relevance.'},
		{level: '01', text: 'None', desc: 'None'},
		{level: '02', text: 'System low priority notification', desc: 'System notification or status messages. They have no security relevance.'},
		{level: '03', text: 'Successful/Authorized events', desc: 'They include successful login attempts, firewall allow events, etc.'},
		{level: '04', text: 'System low priority error', desc: 'Errors related to bad configurations or unused devices/applications. They have no security relevance and are usually caused by default installations or software testing.'},
		{level: '05', text: 'User generated error', desc: 'They include missed passwords, denied actions, etc. By itself they have no security relevance.'},
		{level: '06', text: 'Low relevance attack', desc: 'They indicate a worm or a virus that have no affect to the system (like code red for apache servers, etc). They also include frequently IDS events and frequently errors.'},
		{level: '07', text: '&quot;Bad word&quot; matching.', desc: 'They include words like &quot;bad&quot;, &quot;error&quot;, etc. These events are most of the time unclassified and may have some security relevance.'},
		{level: '08', text: 'First time seen', desc: 'Include first time seen events. First time an IDS event is fired or the first time an user logged in. If you just started using OSSEC HIDS these messages will probably be frequently. After a while they should go away. It also includes security relevant actions (like the starting of a sniffer or something like that).'},
		{level: '09', text: 'Error from invalid source', desc: 'Include attempts to login as an unknown user or from an invalid source. May have security relevance (specially if repeated). They also include errors regarding the &quot;admin&quot; (root) account.'},
		{level: '10', text: 'Multiple user generated errors', desc: 'They include multiple bad passwords, multiple failed logins, etc. They may indicate an attack or may just be that a user just forgot his credentials.'},
		{level: '11', text: 'Integrity checking warning', desc: 'They include messages regarding the modification of binaries or the presence of rootkits (by rootcheck). If you just modified your system configuration you should be fine regarding the &quot;syscheck&quot; messages. They may indicate a sucessful attack. Also included IDS events that will be ignored (high number of repetitions).'},
		{level: '12', text: 'High importancy event', desc: 'They include error or warning messages from the system, kernel, etc. They may indicate an attack against a specific application.'},
		{level: '13', text: 'Unusual error (high importance)', desc: 'Most of the times it matches a common attack pattern.'},
		{level: '14', text: 'High importance security event.', desc: 'Most of the times done with correlation and it indicates an attack.'},
		{level: '15', text: 'Severe attack', desc: 'No chances of false positives. Immediate attention is necessary. '}
	]

});